/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package back;

/**
 *
 * @author Lukin
 */
import java.io.Serializable;
import javax.ejb.EJB;
import javax.enterprise.context.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.event.ActionEvent;

@ManagedBean(name = "linker")
@ApplicationScoped
public class LinkBean implements Serializable{
    
  @EJB
  String parameter;
  
  
  public String onClick(ActionEvent evt)
  {
    Object param = evt.getComponent().getAttributes().get("someParam");
    
    parameter = String.valueOf(param);
    return parameter;
  }
}
